package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysShit;
import com.jinghua.treatment.mapper.SysShitMapper;
import com.jinghua.treatment.service.SysShitService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 便情况业务接口实现类
 * Created by 王兴光 on 2018/3/24.
 */
@Service("shitService")
public class SysShitServiceImpl implements SysShitService {

    @Resource
    private SysShitMapper shitMapper;

    @Override
    public SysShit selectByPrimaryKey(Integer shitId) {
        return shitMapper.selectByPrimaryKey(shitId);
    }

    @Override
    @Transactional
    public int insert(SysShit record) {
        return shitMapper.insert(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(SysShit record) {
        return shitMapper.updateByPrimaryKey(record);
    }
}
